#ifndef _MQTT_NET_COMMUNICATION_HEAD_H
#define _MQTT_NET_COMMUNICATION_HEAD_H

#include "net-communication.h"
#include <string>
#include "MQTTClient.h"

class MQTTNetCommunication : public NetCommunication, public MQTTClient
{
public:
    MQTTNetCommunication(const string &host = "127.0.0.1", uint16_t port = 1883);
    ~MQTTNetCommunication();
    bool sendPacket(const vector<uint8_t> &packet);
    bool recvPacket(vector<uint8_t> &packet, int timeout = -1);

private:
};

#endif